package com.wy2.springcloud.sample.feignapp.cofig;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import feign.Contract;
import feign.Logger;

/**
 * feign配置
 * @author wuyy<16349023@qq.com>,nnsword
 * @date 2018年3月26日下午5:51:13
 *
 */
@Configuration
public class LocalFeignConfig {

//    @Bean
//    public Contract feignContract() {
//        return new feign.Contract.Default();
//    }
    
    /**
     * 通过代码配置feign日志级别
     * @return
     */
    @Bean
    Logger.Level feignLoggerLevel(){
        return Logger.Level.FULL;
    }

//    @Bean
//    public BasicAuthRequestInterceptor basicAuthRequestInterceptor() {
//        return new BasicAuthRequestInterceptor("user", "password");
//    }
}
